/*
 * @Author: yuqy
 * @Date: 2023-09-26 18:13:33
 * @LastEditors: yuqy
 * @LastEditTime: 2023-10-18 13:55:40
 * @Descripttion: -
 */
import { mapState, mapGetters } from 'vuex'
// 获取是否是 中性版本
let VUE_APP_TYPE = import.meta.env.VITE_APP_TYPE;
let VITE_APP_BASE_URL = import.meta.env.VITE_APP_BASE_URL;

const minix = {
  data() {
    return {
      VUE_APP_TYPE,
      VITE_APP_BASE_URL
    }
  },
  created() {},
  async mounted() {},
  computed: {
    ...mapState({
      APP_NAME: (state) => state.APP_NAME,
      APP_VERSON: (state) => state.APP_VERSON,
      nowSystem: (state) => state.nowSystem
    }),
    ...mapGetters({
      APP_IS_Web: 'getAppIsWeb'
    })
  },
  methods: {
    loadData(arg) {

    },
    vantLoading(bool = true) {
      this.$store.commit('updateLoading', bool)
    },
    messageLoading(bool = true) {
      this.$store.commit('updateMessageLoading', bool)
    },
  }
}
export default minix
